package OOday02;

public class Chicken extends Animal{


        Chicken(){

        }
        Chicken(String name,int age,String color){
            super(name,age,color);
        }

    @Override
    void eat() {
        System.out.println(color+"色的"+age+"岁的"+name+"正在吃鸡肉");
    }
    void beEaten(){
        System.out.println(color+"色的"+age+"岁的"+name+"正在被吃");
    }

}
